<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let star = ["刘亦菲菲", "唐敏", "古丽查娜", "anglebaby", "妮妮"];
      star.splice(2, 1, "杨幂");
      star.splice(3, 1, "刘诗诗");
      for (let i = 0; i < star.length; i++) {
        console.log(star[i]);
      }
    </script>
  </body>
</html>
